package com.gkj.gulimall;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

@EnableDiscoveryClient
@MapperScan("com.gkj.gulimall.product.dao")
@SpringBootApplication
/*
* JSR303
* (1)给bean添加校验注解，并定义自己的message信息
* (2)开启校验功能@valid
* (3)给校验的bean后面跟着bindingresult，就可以获取校验的结果
* */
public class GulimallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallProductApplication.class, args);
    }

}
